Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughUpdates React demo components to support portal-based rendering via new Changes
Sequence DiagramsequenceDiagram
actor User
participant Dialog as Dialog<br/>(with ref)
participant ContentActions
participant RenderCallback as Render<br/>Callback
participant Composer
participant MentionSuggestionList
participant Portal as React<br/>Portal
User->>Dialog: Opens dialog
Dialog->>ContentActions: dialogRef available
ContentActions->>RenderCallback: Calls with (onClose,<br/>dialogElement)
RenderCallback->>Composer: Renders ActivityComposer<br/>or CommentComposer<br/>with portalContainer={dialogElement}
Composer->>Composer: Forwards portalContainer
Composer->>MentionSuggestionList: Passes portalContainer prop
MentionSuggestionList->>Portal: Creates portal<br/>with portalContainer<br/>instead of document.body
Portal-->>Dialog: Renders mention<br/>suggestions inside dialog
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly Related PRs
Suggested Reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎫 Ticket: https://linear.app/stream/issue/REACT-751/react-demo
📑 Docs: https://github.com/GetStream/docs-content/pull/
💡 Overview
📝 Implementation notes
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.